import {link} from '@/api/api.js'
export let user={
	state: {
		  item:[],
	},
	mutations: {
		  upitem(state,payload){
			  state.item = payload
		  },
		  
	},
	actions: {
		  useraxios(content){
			  link("/item","get").then(ok=>{
			 			  // console.log(ok.data.item)
			 			  content.commit("upitem",ok.data.item)
			 }).catch(err=>{
			 			  console.log(err)
			 })
			  
		  }
		  
	},
}